﻿@inject IStringLocalizer<DropdownIsFixedButtonText> Localizer

<Dropdown TValue="string" Items="RadioItems" IsFixedButtonText="true" />

@code {
    private List<SelectedItem> RadioItems { get; set; } = new List<SelectedItem>();

    /// <summary>
    /// OnInitialized
    /// </summary>
    protected override void OnInitialized()
    {
        base.OnInitialized();

        RadioItems = new List<SelectedItem>
        {
            new SelectedItem("1", Localizer["Item1"]) { Active = true },
            new SelectedItem("2", Localizer["Item2"])
        };
    }
}
